{block content}
<h1>Přidání obrázku</h1>
{form addPhotoForm class=>form-horizontal}
  <div class="form-group">
    <ul class="errors col-xs-4 col-xs-offset-4" n:if="$form->hasErrors()">
      <li n:foreach="$form->errors as $error" class="alert alert-danger alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        <strong>{$error}</strong>
      </li>
    </ul>
  </div>

  <div class="form-group">
    {label name class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input name class=>form-control}
    </div>
  </div>

  <div class="form-group">
    {label photo class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input photo}
    </div>
  </div>
    
  <div class="form-group">
    <div class="col-xs-4 col-xs-offset-4">
      {input send class=>array(btn, btn-success, btn-md)}
      &nbsp;
      <a n:href="Photo:default" class="btn btn-danger btn-md">Zrušit</a>
    </div>
  </div>
{/form}
{/block}